import { request } from '../request/request.js'


// 获取用户地址 
export const getAddress = (userid) => {
    return request.get(`/address/detail?userid=${userid}`);
}

// 添加用户地址
export const addAddress = (AddressForm) => {
    return request.post(`/address/into`,AddressForm);
}

// 修改用户地址 
export const putAddress = (reviseForm) => {
    return request.put(`/address/revise`,reviseForm);
}

// 删除用户地址 
export const DelAddress = (addressid,userid) => {
    return request.delete(`/address/delete?addressid=${addressid}&userid=${userid}`);
}